package com.cn.wanxi.thread;

public class TestA {
    private int age = 5;

    public static void main(String[] args) {
        TestA testA = new TestA();
        testA.aa(testA.age);
        System.out.println(testA.age);

        TestB testB = new TestB();
        testA.aa(testB);
        System.out.println(testB.age);
    }

    private void aa(int age) {
        age = 3;
    }

    private void aa(TestB testB) {
        testB.age = 4;
    }
}
